package com.special.threademo.requests151demo;

/**
 * @author LiuYC
 * @version 1.0.0
 * @create 2020-12-25 23:03
 */
public class Border {
    public static final int LIGHT_SPEED = 30 * 10000 * 1000;

    /**
     * 边界
     */
    public static void border() {
        long dis1 = LIGHT_SPEED * 60 * 8;
        System.out.println(dis1);
        long dis2 = LIGHT_SPEED * 60L * 8;
        System.out.println(dis2);
    }

    /**
     * 统计一个类的实例数量
     */
    public void border1() {

    }

    /**
     * 静态内部类提高封装性
     */

    private String name;


    private Home home;

    public Home getHome() {
        return home;
    }

    public void setHome(Home home) {
        this.home = home;
    }

    public static class Home {
        private String address;

        public Home(String address, String tel) {
            this.address = address;
            this.tel = tel;
        }

        private String tel;


    }

    public Border(String name) {
        this.name = name;
    }


    public static void main(String[] args) {
        border();
        Border liuyuchao = new Border("liuyuchao");
        liuyuchao.setHome(new Border.Home("shagnhai", "15143038938"));
    }
}